package com.itqf.di;

import lombok.Data;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2020/11/9
 * @Time: 上午11:55
 */
@Data
public class User {
    private  String username;
    private  int id;

    public void setUsername(String username){
        System.out.println("------setUsername");
        this.username = username;
    }

    public User(){}

    public User(String username, int id) {
        System.out.println("通过带参构造方法实例化............");
        this.username = username;
        this.id = id;
    }
}
